﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<style type="text/css">
.ui-dialog-titlebar-close {
	display: none;
}

body {
	background-color: white;
	margin: 0;
	padding: 0;
	text-align: center;
}

div,p,table,th,td {
	list-style: none;
	margin: 0;
	padding: 0;
	color: #333;
	font-size: 12px;
	font-family: dotum, Verdana, Arial, Helvetica, AppleGothic, sans-serif;
}

#testIframe {
	margin-left: 10px;
}
</style>
		<link rel="stylesheet" type="text/css" href="../css/styles.css" />
		<script type="text/javascript" src="/hrms/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="/hrms/js/jquery.container.js"></script>
		<title>需求框架</title>
		<script type="text/javascript">
	var zTree;
	var setting = {
		view: {
			dblClickExpand: false,
			showLine: true,
			selectedMulti: false,
			expandSpeed: ($.browser.msie && parseInt($.browser.version)<=6)?"":"fast"
		},
		data: {
			simpleData: {
				enable:true,
				idKey: "annalid",
				pIdKey: "parentid",
				rootPId: ""
			},
			key:{
				name:"functionname"
				}
		},
		callback: {
			beforeClick: function(treeId, treeNode) {
				
				var zTree = $.fn.zTree.getZTreeObj("tree");
				if (treeNode.isParent) {
					zTree.expandNode(treeNode);
					return false;
				} else {
					//$("#mydesk").location.href=treeNode.file+".html";
					$("#mydesk").attr("src",treeNode.enterurl + ".html");
					return true;
				}
			}
		}
	};

	var zNodes =[
		/**{annalid:1, parentid:0, functionname:"系统管理"}
				,
		{id:101, pId:1, name:"机构管理", file:"sysmgr/orgmgr"},
		{id:102, pId:1, name:"岗位管理", file:"sysmgr/rolemgr"},
		{id:103, pId:1, name:"用户管理", file:"sysmgr/usermgr"},
		{id:104, pId:1, name:"功能管理", file:"sysmgr/funcmgr"},
		{id:105, pId:1, name:"服务管理", file:"sysmgr/servicemgr"},
		{id:106, pId:1, name:"用户角色管理", file:"sysmgr/userauth"},
		{id:107, pId:1, name:"字典管理",file:"sysmgr/dictmgr"},

		{id:2, pId:0, name:"人事档案管理", open:false},
		{id:201, pId:2, name:"员工基础管理", file:"arcmgr/empinfomgr"},
		{id:202, pId:2, name:"在司员工信息", file:"arcmgr/staffInfomgr"},
		{id:203, pId:2, name:"合同管理", file:"arcmgr/contmgr"},
		{id:204, pId:2, name:"我的资料", file:"arcmgr/myInfo"},
		
		{id:3, pId:0, name:"考勤管理", open:false},
		{id:301, pId:3, name:"在线考勤", file:"checkwkmgr/attendonline"},
		{id:302, pId:3, name:"加班申请", file:"checkwkmgr/askforextra"},
		{id:303, pId:3, name:"加班审核", file:"checkwkmgr/applyextra"},
		{id:304, pId:3, name:"休假管理", file:"checkwkmgr/holidaymgr"},
		
		{id:4, pId:0, name:"招聘管理", open:false},
		{id:401, pId:4, name:"招聘信息管理", file:"advtmgr/advplanmgr"},
		{id:402, pId:4, name:"招聘计划管理", file:"advtmgr/advinfomgr"},
		
		{id:5, pId:0, name:"培训管理", open:false},
		{id:501, pId:5, name:"培训计划制定", file:"trainmgr/trainplanmgr"},
		{id:501, pId:5, name:"培训计划审核", file:"trainmgr/trainplanaudit"},
		{id:502, pId:5, name:"培训资料管理", file:"trainmgr/traindatamgr"},
		{id:505, pId:5, name:"培训师信息管理", file:"trainmgr/trainerinfomgr"},
		{id:506, pId:5, name:"培训课程管理", file:"trainmgr/lessonrecords"},
		{id:507, pId:5, name:"培训线上调查", file:"trainmgr/estimateonline"},
		{id:508, pId:5, name:"员工受训管理", file:"trainmgr/emptrainrecords"},
		{id:510, pId:5, name:"培训积分管理", file:"trainmgr/piontsmgr"},
		
		{id:6, pId:0, name:"制度与公告", open:false},
		{id:601, pId:6, name:"制度管理", file:"notimgr/instimgr"},
		{id:602, pId:6, name:"通知/公告管理", file:"notimgr/notimgr"},
		
		{id:7, pId:0, name:"查询统计", open:false},
		{id:701, pId:7, name:"报表模板管理", file:"report/rpttem"},
		{id:702, pId:7, name:"报表查询统计", file:"report/rptquery"},
		{id:703, pId:7, name:"员工履历查询", file:"report/empifo"},
		{id:704, pId:7, name:"员工考勤查询", file:"report/attendquery"}**/
	];
	
	$(document).ready( function() {
		var t = $("#tree");
		
		$.ajax({
			url:appPath+"webservice/resources/function/queryByRolecode",
			data:"rolecode=",
			success:function(data){
			if(data===null||data==="undefined"||data===""){
				self.parent.location="/hrms/";
				alert("会话已结束，请重新登录！");
				return ;
				}
			t = $.fn.zTree.init(t, setting, data);
			var zTree = $.fn.zTree.getZTreeObj("tree");
			}
			});
	});
</script>
	</head>
	<body>
		<table width="99.8%" border="0" cellspacing="1">
			<tr>
				<td width="100%" colspan="3">
					<iframe src="top.html" frameborder="0" height="80px" width="100%"></iframe>
				</td>
			</tr>
			<tr>
				<td width="14%" align="left" valign="top" style="">
					<img src="../imgs/main_04.png"/>
					<div style="background:url(../imgs/main_06.png) repeat-y 0 -10px;height: 560px; overflow: no">
						<ul id="tree" class="ztree" style="overflow: no;"></ul>
					</div>
					<img src="../imgs/main_12.png"/>
				</td>
				<td width="85%">
					<iframe id="mydesk" width="100%" height="640px" src="desktop.html" frameborder="0" scrolling="auto">
					</iframe>
				</td>
			</tr>
			<tr>
				<td width="100%" height="5%" colspan="2">
					<iframe src="footer.html" frameborder="0" scrolling="no"
						height="30px" width="100%"></iframe>
				</td>
			</tr>
		</table>
	</body>
</html>




